import request from '@/utils/request'

export function pageCustomer(data) {
  return request({
    url: '/intendedCustomer/page',
    method: 'post',
    data
  })
}
export function getCustomer(id) {
  return request({
    url: `/intendedCustomer/get/${id}`,
    method: 'get',
  })
}
export function deleteCustomer(id) {
  return request({
    url: `/intendedCustomer/delete/${id}`,
    method: 'delete',
  })
}
export function saveCustomer(data) {
  return request({
    url: '/intendedCustomer/save',
    method: 'put',
    data
  })
}
export function editCustomer(data) {
  return request({
    url: '/intendedCustomer/edit',
    method: 'post',
    data
  })
}
export function listCustomer(data) {
  return request({
    url: `/intendedCustomer/list/${data}`,
    method: 'get'
  })
}
export function listAllCustomer() {
  return request({
    url: '/intendedCustomer/listAll',
    method: 'get'
  })
}
